.class public Lcom/waiqin365/lightapp/kehu/b/bh;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/ArrayList;

.field private c:Lcom/waiqin365/lightapp/kehu/b/bj;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->b:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/b/bh;)Lcom/waiqin365/lightapp/kehu/b/bj;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->c:Lcom/waiqin365/lightapp/kehu/b/bj;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/waiqin365/lightapp/kehu/b/bj;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->c:Lcom/waiqin365/lightapp/kehu/b/bj;

    return-void
.end method

.method public a(Ljava/util/ArrayList;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->b:Ljava/util/ArrayList;

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->b:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->b:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bl;

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    const/4 v3, 0x0

    const/16 v4, 0x8

    if-nez p2, :cond_1

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/bk;

    invoke-direct {v1, p0, v3}, Lcom/waiqin365/lightapp/kehu/b/bk;-><init>(Lcom/waiqin365/lightapp/kehu/b/bh;Lcom/waiqin365/lightapp/kehu/b/bi;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f030049

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c01f9

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/bk;->a:Landroid/widget/LinearLayout;

    const v0, 0x7f0c01fa

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/bk;->b:Landroid/widget/TextView;

    const v0, 0x7f0c01fc

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/bk;->c:Landroid/widget/LinearLayout;

    const v0, 0x7f0c01fd

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/bk;->d:Landroid/widget/ImageView;

    const v0, 0x7f0c01fe

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/bk;->e:Landroid/widget/TextView;

    const v0, 0x7f0c01ff

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/bk;->f:Landroid/view/View;

    const v0, 0x7f0c0200

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/bk;->g:Landroid/view/View;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v2, v1

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bl;

    iget-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->e:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/b/bl;->d:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget v1, v0, Lcom/waiqin365/lightapp/kehu/b/bl;->g:I

    if-nez v1, :cond_2

    iget-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->d:Landroid/widget/ImageView;

    const v3, 0x7f02009f

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_1
    iget-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->d:Landroid/widget/ImageView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->d:Landroid/widget/ImageView;

    new-instance v3, Lcom/waiqin365/lightapp/kehu/b/bi;

    invoke-direct {v3, p0}, Lcom/waiqin365/lightapp/kehu/b/bi;-><init>(Lcom/waiqin365/lightapp/kehu/b/bh;)V

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-eqz p1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->b:Ljava/util/ArrayList;

    add-int/lit8 v3, p1, -0x1

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/b/bl;

    iget v1, v1, Lcom/waiqin365/lightapp/kehu/b/bl;->g:I

    iget v3, v0, Lcom/waiqin365/lightapp/kehu/b/bl;->g:I

    if-eq v1, v3, :cond_4

    :cond_0
    iget-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->a:Landroid/widget/LinearLayout;

    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget v0, v0, Lcom/waiqin365/lightapp/kehu/b/bl;->g:I

    if-nez v0, :cond_3

    iget-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->a:Landroid/content/Context;

    const v2, 0x7f080576

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    return-object p2

    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bk;

    move-object v2, v0

    goto :goto_0

    :cond_2
    iget-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->d:Landroid/widget/ImageView;

    const v3, 0x7f0200a0

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_1

    :cond_3
    iget-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/b/bh;->a:Landroid/content/Context;

    const v3, 0x7f08001e

    invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_2

    :cond_4
    iget-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/bk;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_2
.end method
